TestCase
(
	'org.puremvc.js.patterns.observer.NotificationTest'
	
,	{
		testNameAccessors: function ()
		{
			var noteName= 'testNote'
			,	note= new Notification(noteName)
			
			assertSame('The note name provided to the constructor was retrieved via #getName()', noteName, note.getName());
		}
		
	,	testBodyAccessors: function ()
		{
			var noteBody= 5
			,	note= new Notification
			
			note.setBody(noteBody);
			
		}
		
	,	testConstructor: function ()
		{
			var noteName= 'testNote'
			,	noteBody= 5
			,	noteType= 'testNoteType'
			,	note= new Notification(noteName, noteBody, noteType)
			
			assertSame('The noteName provided to the constructor is retrieved by #getName', noteName, note.getName());
			assertSame('The noteBody provided to the constructor is retrieved by #getBody', noteBody, note.getBody());
			assertSame('The noteType provided to the constructor is retrieved by #getType', noteType, note.getType());
		}
		
	,	testToString: function ()
		{
			// Create a new Notification and use accessors to set the note name 
   			var note = new Notification('TestNote',[1,3,5],'TestType');
   			var ts = "Notification Name: TestNote\nBody:1,3,5\nType:TestType";
   			
   			// test assertions
   			assertEquals( "Expecting note.toString() == '"+ts+"'", ts, note.toString());
		}
	}	
);
